<@ms.html5>
	<@ms.nav title="车大夫" back=true></@ms.nav>
	<@ms.panel>
				<@ms.searchForm  name="searchForm" id="searchForm" action="${managerPath}/carDoctor/list.do">
						<@ms.text label="车大夫名称"   name="cdName"  title="请输入车大夫名称"  placeholder="请输入车大夫名称" value="${cdName?default('')}"   />
						<@ms.text label="就职企业"   name="cdEnterprise"  title="请输入就职企业"  placeholder="请输入就职企业" value="${cdEnterprise?default('')}"   />
						<@ms.searchFormButton>
								<@ms.queryButton id="submitSearch"/>								
						</@ms.searchFormButton>
				</@ms.searchForm>
				
				<@ms.table head=['<th class="text-center">序号</th>','<th class="text-center">车大夫名称</th>','<th class="text-center">职称</th>','<th class="text-center">就职企业</th>','<th class="text-center">专长</th>','<th class="text-center">服务评分</th>']>
						<#if carDoctorList?has_content>
		        			<#list carDoctorList as carDoctor>
		           				<tr>
		           					<td class="text-center">${carDoctor_index+1}</td>
						            <td class="text-center">${carDoctor.cdName?default("-")}</td>
						            <td class="text-center">${carDoctor.cdTitle?default("-")}</td>
						            <td class="text-center">${carDoctor.cdEnterprise?default("-")}</td>
						            <td class="text-center">${carDoctor.cdSkill?default("-")}</td>
						            <td class="text-center"><#if carDoctor.cdScore??>#{carDoctor.cdScore;m1M1}</#if></td>
						        </tr>
		           			</#list>
		           		<#else>	
			           		<tr>
						         <td colspan="6" class="text-center">
						            <@ms.nodata/>
								</td>
					        </tr>
		           		</#if>
					</@ms.table>
					<!--分页样式 开始-->
					<#if page?has_content>
						<@ms.pagehelper page=page url="${managerPath}/carDoctor/list.do?${params}"/>
					</#if>	
	</@ms.panel>
</@ms.html5>
<script>
	$(function(){
		//根据条件查询车大夫
		$("#submitSearch").click(function() {
			$("#searchForm")[0].submit();
		});
	});
	//js监听回车键 
	document.onkeydown = function(e) {
		e = e ? e : window.event;
		var keyCode = e.which ? e.which : e.keyCode;
		if (keyCode == 13) {
			$("#searchForm")[0].submit();
		}
	}
</script>